package com.traffic.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销假申请对象 per_leave_cancellation_requests
 * 
 * @author 郭世纪
 * @date 2024-12-08
 */
public class PerLeaveCancellationRequests extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 销假申请ID */
    private Long cancellationRequestId;

    /** 用户姓名 */
    @Excel(name = "用户姓名")
    private String userName;

    /** 所属部门 */
    @Excel(name = "所属部门")
    private String department;

    /** 公休剩余天数 */
    @Excel(name = "公休剩余天数")
    private String holidaysRemainder;

    /** 审批状态 */
    @Excel(name = "审批状态")
    private String approvalStatus;

    /** 销假开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销假开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancellationStartDate;

    /** 销假结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "销假结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date cancellationEndDate;

    /** 请假天数 */
    @Excel(name = "请假天数")
    private Long leaveDay;

    /** 提交人 */
    @Excel(name = "提交人")
    private String submitter;

    /** 审批人 */
    @Excel(name = "审批人")
    private String approver;

    /** 销假原因 */
    @Excel(name = "销假原因")
    private String reason;

    /** 审批人备注 */
    @Excel(name = "审批人备注")
    private String approvalComments;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date creatTime;

    public void setCancellationRequestId(Long cancellationRequestId) 
    {
        this.cancellationRequestId = cancellationRequestId;
    }

    public Long getCancellationRequestId() 
    {
        return cancellationRequestId;
    }
    public void setUserName(String userName) 
    {
        this.userName = userName;
    }

    public String getUserName() 
    {
        return userName;
    }
    public void setDepartment(String department) 
    {
        this.department = department;
    }

    public String getDepartment() 
    {
        return department;
    }
    public void setHolidaysRemainder(String holidaysRemainder) 
    {
        this.holidaysRemainder = holidaysRemainder;
    }

    public String getHolidaysRemainder() 
    {
        return holidaysRemainder;
    }
    public void setApprovalStatus(String approvalStatus) 
    {
        this.approvalStatus = approvalStatus;
    }

    public String getApprovalStatus() 
    {
        return approvalStatus;
    }
    public void setCancellationStartDate(Date cancellationStartDate) 
    {
        this.cancellationStartDate = cancellationStartDate;
    }

    public Date getCancellationStartDate() 
    {
        return cancellationStartDate;
    }
    public void setCancellationEndDate(Date cancellationEndDate) 
    {
        this.cancellationEndDate = cancellationEndDate;
    }

    public Date getCancellationEndDate() 
    {
        return cancellationEndDate;
    }
    public void setLeaveDay(Long leaveDay) 
    {
        this.leaveDay = leaveDay;
    }

    public Long getLeaveDay() 
    {
        return leaveDay;
    }
    public void setSubmitter(String submitter) 
    {
        this.submitter = submitter;
    }

    public String getSubmitter() 
    {
        return submitter;
    }
    public void setApprover(String approver) 
    {
        this.approver = approver;
    }

    public String getApprover() 
    {
        return approver;
    }
    public void setReason(String reason) 
    {
        this.reason = reason;
    }

    public String getReason() 
    {
        return reason;
    }
    public void setApprovalComments(String approvalComments) 
    {
        this.approvalComments = approvalComments;
    }

    public String getApprovalComments() 
    {
        return approvalComments;
    }
    public void setCreatTime(Date creatTime) 
    {
        this.creatTime = creatTime;
    }

    public Date getCreatTime() 
    {
        return creatTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cancellationRequestId", getCancellationRequestId())
            .append("userName", getUserName())
            .append("department", getDepartment())
            .append("holidaysRemainder", getHolidaysRemainder())
            .append("approvalStatus", getApprovalStatus())
            .append("cancellationStartDate", getCancellationStartDate())
            .append("cancellationEndDate", getCancellationEndDate())
            .append("leaveDay", getLeaveDay())
            .append("submitter", getSubmitter())
            .append("approver", getApprover())
            .append("reason", getReason())
            .append("approvalComments", getApprovalComments())
            .append("creatTime", getCreatTime())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
